Skip to content

Conversation

@bend-n
Copy link
Contributor

@bend-n bend-n commented Oct 31, 2025

constifies unwrap unchecked on result
will make tracking issue if good

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 31, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 31, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

// SAFETY: the safety contract must be upheld by the caller.
Err(_) => unsafe { hint::unreachable_unchecked() },
Err(e) => {
super::mem::forget(e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be annotated as a const hack so it can potentially be fixed later:

// FIXME(const-hack): to avoid E: const Destruct bound

@bend-n bend-n force-pushed the const_result_unwrap_unchecked branch from 05b1251 to c15b256 Compare November 1, 2025 20:48
@rust-log-analyzer

This comment has been minimized.

@bend-n bend-n force-pushed the const_result_unwrap_unchecked branch from c15b256 to 991b449 Compare November 1, 2025 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants